package com.aranandroid.customview.dialog

import android.app.ProgressDialog
import android.content.Context
import android.view.Window

class WaitDialog(context: Context?) : ProgressDialog(context) {
    fun setMessages(s: String?) {
        setMessage(s)
    }

    init {
        requestWindowFeature(Window.FEATURE_NO_TITLE)
        setCanceledOnTouchOutside(false)
        setCancelable(false)
        setProgressStyle(STYLE_SPINNER)
        setMessage("正在处理，请稍后…")
    }
}